package net.jarang.android.saleoffline.activity;

import net.jarang.android.saleoffline.domain.appinfo.AppManager;
import android.content.Intent;


abstract public class AbstractAuthActivity extends AbstractBaseActivity {
	protected AppManager appManager;
	@Override
	public void onResume() {
        super.onResume();
        appManager = new AppManager(this);
        
		//회원? or 로그인?
		if (!appManager.isMember()) {
			Intent intent = new Intent(this, MemberRegisterActivity.class);
        	startActivity(intent);
        	finish();
		} else if (!appManager.isLogin()) {
			Intent intent = new Intent(this, LoginActivity.class);
        	startActivity(intent);
        	finish();
		}
	}
}
